package com.jiashihui.schema_lgorithm.schema.mediator;

/**
 * @author jiashihui
 * @describe: 中介者模式测试类
 * @date 2019/03/15
 *
 * 用来降低类与类之间的耦合
 * 只需关心和Mediator类的关系，具体类类之间的关系及调度交给Mediator就行，有点像spring容器的作用
 */
public class MediatorTest {
    public static void main(String[] args) {
        Mediator mediator = new MediatorImpl();
        mediator.createMediator();
        mediator.worKTogether();
    }
}
